package jp.go.aist.six.test.util.orm.inheritance;

import jp.go.aist.six.util.persist.AbstractPersistable;
import jp.go.aist.six.util.persist.Dependent;




/**
 * @author  Akihito Nakamura, AIST
 * @version $Id: AbstractA.java 203 2010-12-02 03:03:07Z nakamura5akihito $
 */
public class AbstractA
    extends AbstractPersistable<String>
    implements Dependent<ContainerX>
{

    private String  _name;



    /**
     */
    public AbstractA()
    {
    }


    public AbstractA(
                    final String name
                    )
    {
        setName( name );
    }



    /**
     */
    public void setName(
                    final String name
                    )
    {
        _name = name;
    }



    /**
     */
    public String getName()
    {
        return _name;
    }



    //**************************************************************
    //  Dependent
    //**************************************************************

    private ContainerX  _master;


    public void setMasterObject(
                    final ContainerX master
                    )
    {
        _master = master;
    }


    public ContainerX getMasterObject()
    {
        return _master;
    }



    //**************************************************************
    //  java.lang.Object
    //**************************************************************

    @Override
    public String toString()
    {
        return getName();
    }

}
// AbstractA

